Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add memcached_sasl_authenticate_connection_ascii() #314

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

namsic
Copy link
Collaborator

@namsic namsic commented Nov 13, 2024

(동작 확인 단계이고 세부 구현은 충분히 확인하지 않았습니다.)

  • jam2in/arcus-works#634

🔗 Related Issue

⌨️ What I did

  • PR 인터페이스 기반으로 한 클라이언트 구현입니다.

1

인증 없이 요청

    memcached_st *memc = memcached_create(NULL);
    // memcached_set_sasl_auth_data(memc, "namsic", "1234");

    . . .
    memcached_set(…);
memcached_set() failed, reason(9)=rc(CLIENT ERROR)
[2024-11-13 21:21:16.824306] mc_id:0 mc_qid:2 er_qid:2 CLIENT ERROR, unauthenticated, host: 127.0.0.1:41234 -> libmemcached/response.cc:452

2

잘못된 pw로 요청

    memcached_st *memc = memcached_create(NULL);
    memcached_set_sasl_auth_data(memc, "namsic", "1235");

    . . .
    memcached_set(…);
memcached_set() failed, reason(10)=rc(SERVER ERROR)
[2024-11-13 21:23:31.002702] mc_id:0 mc_qid:2 er_qid:2 SERVER ERROR, host: 127.0.0.1:41234 -> libmemcached/sasl.cc:395
[2024-11-13 21:23:31.002596] mc_id:0 mc_qid:2 er_qid:2 SERVER ERROR, internal, host: 127.0.0.1:41234 -> libmemcached/response.cc:336

3

인증 성공

    memcached_st *memc = memcached_create(NULL);
    memcached_set_sasl_auth_data(memc, "namsic", "1234");

    . . .
    memcached_set(…);
memcached_set(): SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants